package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbContainerConfigMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbContainerConfig;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-09-18 18:37
 **/

@Repository
public class TbContainerConfigDao {
    @Autowired
    TbContainerConfigMapper tbContainerConfigMapper;

    public TbContainerConfig selectByPrimaryKey(Long id) {
        return tbContainerConfigMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbContainerConfig record) {
        return tbContainerConfigMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbContainerConfig record) {
        return tbContainerConfigMapper.insertSelective(record);
    }

    public List<TbContainerConfig> selectListForPage(TbContainerConfig where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbContainerConfigMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbContainerConfig where, TbCustomWhere mapWhere) {
        return tbContainerConfigMapper.selectListForPageCount(where, mapWhere);
    }

    public Integer selectMaxForConfigVersion(TbContainerConfig where, TbCustomWhere mapWhere) {
        return tbContainerConfigMapper.selectMaxForConfigVersion(where, mapWhere);
    }

    public int updateWithTimestamp(TbContainerConfig record) {
        return tbContainerConfigMapper.updateWithTimestamp(record);
    }
}
